package com.karry.yl.dao.services;

import com.karry.commons.base.SuperMapper;
import com.karry.yl.domain.healthdata.HealthDataItem;
import com.karry.yl.domain.services.Items;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface ItemsMapper extends SuperMapper<Items> {
    @Select("select * from health_data_item hdi inner join service_healthdata sh on sh.healthDataItemId = hdi.id inner join items i on i.id = sh.serviceItemId where hdi.deleted=false and i.id = #{itemId} ")
    List<HealthDataItem> selectItemList(Long itemId);
}
